<template>
  <view class="refund-summary">
    <view class="summary-item">
      <view class="item-label">{{$t('order.refundType')}}：</view>
      <view class="item-content">{{ order.refund_type == 1 ? $t('order.refund') : $t('order.exchangeGoods') }}</view>
    </view>
    <view class="summary-item border-bottom">
      <view class="item-label">{{$t('order.reason')}}：</view>
      <view class="item-content">{{ order.refund_desc }}</view>
    </view>

    <view class="summary-item border-bottom" v-if="order.refund_status == 3">
      <view class="item-label">{{$t('order.reject')}}：</view>
      <view class="item-content">{{ order.refuse_desc }}</view>
    </view>

    <view class="total-price">
      <text>{{$t('order.money')}}</text>
      <text>￥{{ order.refund_price }}</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    order: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  filters: {},
  computed: {},
};
</script>

<style lang="scss" scoped>
.refund-summary {
  width: 100%;
  border-radius: 24rpx;
  background: #ffffff;
  padding: 16rpx 36rpx 16rpx 36rpx;
  margin: 24rpx 0 295rpx 0;
  .summary-item {
    font-size: 26rpx;
    height: 76rpx;
    min-height: 76rpx;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    color: #262626;
    .item-label {
      width: 130rpx;
      min-width: 130rpx;
      margin-right: 16rpx;
    }
    .item-content{
        font-weight: 500;
    }
  }
  .border-bottom {
    border-bottom: 1px solid #f8f8f8;
  }

  .hold-line {
    margin-bottom: 40rpx;
    display: flex;
    justify-content: flex-end;
    view {
      width: 576rpx;
      height: 1rpx;
      background: #f2f2f2;
    }
  }

  .total-price {
    height: 76rpx;
    min-height: 76rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 26rpx;
    color: #f0250e;

    text:last-child{
      font-weight: 600;
    }
  }
}
</style>